﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

namespace StringVariables
{
    public class RealVariableType: VariableType<double>
    {

        protected override double GetValueInternal(string value)
        {
            return double.Parse(value);
        }

        public override bool IsValid(string value)
        {
            double i;
            return double.TryParse(value, out i);
        }
    }
}
